<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Star(name, age) {
            this.uname = name;
            this.uage = age;
            // this.sing = function() {
            //     console.log('唱歌');
            // }
        };
        var hg = new Star('胡歌', 100);
        var zjl = new Star('周杰伦', 200);
        console.dir(hg); //每个实例化对象中都存在对象的原型__proto__，指向构造函数的原型
    </script>
</body>

</html>